package com.naiterui.ehp.bs.wechat.protocol.params;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 获取微信公众号参数二维码，自定义参数信息
 *
 * @author zhoupeipei
 * @date 2019/1/28 下午5:53
 * @since 1.0.0
 */
public class CodeActionInfo {
    private Scene scene;

    public Scene getScene() {
        return scene;
    }

    public void setScene(Scene scene) {
        this.scene = scene;
    }

    public CodeActionInfo(Scene scene) {
        this.scene = scene;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public static class Scene {
        @JsonProperty("scene_str")
        @JsonInclude(JsonInclude.Include.NON_NULL)
        private String sceneStr;
        @JsonProperty("scene_id")
        @JsonInclude(JsonInclude.Include.NON_NULL)
        private Long sceneId;

        public Scene(Long sceneId) {
            this.sceneId = sceneId;
        }

        public Scene(String sceneStr) {
            this.sceneStr = sceneStr;
        }

        public String getSceneStr() {
            return sceneStr;
        }

        public void setSceneStr(String sceneStr) {
            this.sceneStr = sceneStr;
        }

        public Long getSceneId() {
            return sceneId;
        }

        public void setSceneId(Long sceneId) {
            this.sceneId = sceneId;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
